source("model_hierarchical.R")

# generate.full.model("~/ideal_small2/barnes.small.trace", 
#                     "barnes.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)
# 
generate.full.model("~/ideal_small2/blackscholes.small.trace", 
                    "blackscholes.model", 
                    "ch", 
                    "Node.Injection", 
                    100000, 
                    "L", 
                    "NFlow.Injection", 
                    200, 
                    32)
# 
# generate.full.model("~/ideal_small2/bodytrack.small.trace", 
#                     "bodytrack.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)
# 
# generate.full.model("~/ideal_small2/canneal.small.trace", 
#                     "canneal.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)
# 
# generate.full.model("~/ideal_small2/cholesky.small.trace", 
#                     "cholesky.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)
# 
# generate.full.model("~/ideal_small2/facesim.small.trace", 
#                     "facesim.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)
# 
# generate.full.model("~/ideal_small2/fft.small.trace", 
#                     "fft.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)
# 
# generate.full.model("~/ideal_small2/fluidanimate.small.trace", 
#                     "fluidanimate.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)
# 
# generate.full.model("~/ideal_small2/lu_cb.small.trace", 
#                     "lu_cb.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)
# 
# generate.full.model("~/ideal_small2/lu_ncb.small.trace", 
#                     "lu_ncb.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)

# generate.full.model("~/ideal_small2/ocean_cp.small.trace", 
#                     "ocean_cp.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)

# generate.full.model("~/ideal_small2/radiosity.small.trace", 
#                     "radiosity.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)
# 
# generate.full.model("~/ideal_small2/radix.small.trace", 
#                     "radix.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)
# 
# generate.full.model("~/ideal_small2/raytrace.small.trace", 
#                     "raytrace.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)

# generate.full.model("~/ideal_small2/streamcluster.small.trace", 
#                     "streamcluster.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)

# generate.full.model("~/ideal_small2/swaptions.small.trace", 
#                     "swaptions.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)

# generate.full.model("~/ideal_small2/vips.small.trace", 
#                     "vips.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)

# generate.full.model("~/ideal_small2/volrend.small.trace", 
#                     "volrend.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)
# 
# generate.full.model("~/ideal_small2/water_nsquared.small.trace", 
#                     "water_nsquared.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)
# 
# generate.full.model("~/ideal_small2/water_spatial.small.trace", 
#                     "water_spatial.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     500000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     200, 
#                     32)





# generate.full.model("~/ideal_small2/swaptions.small.trace", 
#                     "swaptions_ch_Node_1250000_Flow_500.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     1250000, 
#                     "L", 
#                     "Flow.Injection", 
#                     500, 
#                     32)
# 
# generate.full.model("~/ideal_small2/swaptions.small.trace", 
#                     "swaptions_ch_Node_250000_NFlow_100.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     250000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     100, 
#                     32)
# 
# generate.full.model("~/ideal_small2/swaptions.small.trace", 
#                     "swaptions_ch_Node_1250000_NFlow_500.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     1250000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     500, 
#                     32)
# 
# 
# #Raytrace
# 
# generate.full.model("~/ideal_small2/raytrace.small.trace", 
#                     "raytrace_ch_Node_250000_Flow_100.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     250000, 
#                     "L", 
#                     "Flow.Injection", 
#                     100, 
#                     32)
# 
# generate.full.model("~/ideal_small2/raytrace.small.trace", 
#                     "raytrace_ch_Node_1250000_Flow_500.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     1250000, 
#                     "L", 
#                     "Flow.Injection", 
#                     500, 
#                     32)
# 
# generate.full.model("~/ideal_small2/raytrace.small.trace", 
#                     "raytrace_ch_Node_250000_NFlow_100.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     250000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     100, 
#                     32)
# 
# generate.full.model("~/ideal_small2/raytrace.small.trace", 
#                     "raytrace_ch_Node_1250000_NFlow_500.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     1250000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     500, 
#                     32)
# 
# #lu_cb
# 
# generate.full.model("~/ideal_small2/lu_cb.small.trace", 
#                     "lucb_ch_Node_250000_Flow_100.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     250000, 
#                     "L", 
#                     "Flow.Injection", 
#                     100, 
#                     32)
# 
# generate.full.model("~/ideal_small2/lu_cb.small.trace", 
#                     "lucb_ch_Node_1250000_Flow_500.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     1250000, 
#                     "L", 
#                     "Flow.Injection", 
#                     500, 
#                     32)
# 
# generate.full.model("~/ideal_small2/lu_cb.small.trace", 
#                     "lucb_ch_Node_250000_NFlow_100.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     250000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     100, 
#                     32)
# 
# generate.full.model("~/ideal_small2/lu_cb.small.trace", 
#                     "lucb_ch_Node_1250000_NFlow_500.model", 
#                     "ch", 
#                     "Node.Injection", 
#                     1250000, 
#                     "L", 
#                     "NFlow.Injection", 
#                     500, 
#                     32)